.user-management-container {
  padding: 20px 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.page-header h1 {
  color: var(--primary-color);
}

.add-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--success-color);
}

.add-button:hover {
  background-color: #27ae60;
}

/* 添加用户表单 */
.add-user-form {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  margin-bottom: 25px;
}

.add-user-form h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.error {
  color: var(--danger-color);
  font-size: 12px;
  margin-top: 5px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 用户表格 */
.users-table-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.users-table th {
  background-color: rgba(0, 0, 0, 0.02);
  font-weight: 500;
}

.users-table tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.inactive-row {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--light-text-color);
}

.role-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.role-admin {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
}

.role-user {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--secondary-color);
}

.role-viewer {
  background-color: rgba(149, 165, 166, 0.1);
  color: #7f8c8d;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.status-badge.active {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
}

.status-badge.inactive {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
}

.status-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 5px 10px;
}

.status-toggle.enable {
  background-color: var(--success-color);
}

.status-toggle.enable:hover {
  background-color: #27ae60;
}

.status-toggle.disable {
  background-color: var(--danger-color);
}

.status-toggle.disable:hover {
  background-color: #c0392b;
}

.self-message {
  display: inline-block;
  padding: 5px 10px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  font-size: 12px;
  color: var(--light-text-color);
}

.no-data {
  text-align: center;
  padding: 50px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  color: var(--light-text-color);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .users-table th:nth-child(2),
  .users-table td:nth-child(2),
  .users-table th:nth-child(5),
  .users-table td:nth-child(5) {
    display: none;
  }
} 